import  axios from  'axios'

export default class SystemUserService {
    static systemUserService = null

    static getInstance(){
        if(this.systemUserService == null){
            this.systemUserService = new SystemUserService()
        }
        return this.systemUserService
    }

    //查询所有员工
    list(user){
        return axios.get('http://localhost/users',{
            params:user
        })
    }

    getStatus(id){
        return axios.get(`http://localhost/users/${id}`)
    }

    save(user){
        return axios.post(`http://localhost/users`,user)
    }

    qc(userName){
        return axios.get(`http://localhost/users/qc/${userName}`,)
    }


    selectUserAboutRecord(params){
        return axios.get('http://localhost/users/selectUserAboutRecord',{
            params:params
        })
    }

}
